import type { AppRouteModule } from '/@/router/types';

import { BACKEND_LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';

const route: AppRouteModule = {
  path: '/backend-source',
  name: 'BackendSource',
  component: BACKEND_LAYOUT,
  redirect: '/backend-source/source-manage',
  meta: {
    orderNo: 5000,
    icon: 'tabler:chart-dots',
    title: t('routes.backend.source.source'),
  },
  children: [
    {
      path: 'source-manage',
      name: 'BackendSourceManage',
      component: () => import('/A/backend/views/source/source-manage.vue'),
      meta: {
        title: t('routes.backend.source.sourceManage'),
      },
    },
    {
      path: 'menu-manage',
      name: 'BackendMenuManage',
      component: () => import('/A/backend/views/source/menu-manage.vue'),
      meta: {
        title: t('routes.backend.source.menuManage'),
      },
    },
    {
      path: 'source-type-manage',
      name: 'BackendSourceType',
      component: () => import('/A/backend/views/source/source-type-manage.vue'),
      meta: {
        title: t('routes.backend.source.sourceTypeManage'),
      },
    },
  ],
};

export default route;
